import App from './App'

import uView from "uview-ui";
import moment from 'moment'
Vue.use(uView);

// 注册全局组件

// head
import cuCustom from "components/cu-custom.vue"
Vue.component('cu-custom', cuCustom)

// tabbar
import Tabbar from "components/tabbar.vue"
Vue.component('tabbar', Tabbar)
Vue.prototype.$moment = moment
// #ifndef VUE3
import Vue from 'vue'
import share from '@/utils/wxShare'
Vue.config.productionTip = false
App.mpType = 'app'
Vue.mixin(share)
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import moment from 'moment';
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif
